-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove svn handling in unpacking.unpack_file #7037
Conversation
70ed188
to
236bfac
Compare
Actually, I think this would be called when a URL mapped to an SVN repository, but an explicit |
`download.unpack_url` already calls `unpack_vcs_link`, it looks like this was leftover from before that change.
ceffb0e
to
b6f7470
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay! Dead code.
Hmm, even if it wasn't documented, given the wide usage of pip, it's quite credible that some user somewhere was actually relying on this ^^ Since it's already merged and the impacted use case is certainly quite rare and the workaround quite simple (adding the |
Yes that makes sense. Currently the removal wording is:
How does this sound?
|
Pretty good 👍 |
Reverts are cheap. I'd say we shouldn't care whether a feature is in master but rather whether it's been released, when deciding about deprecation stuff. This is super edge-casey but yea, I'm on board to do a single-release deprecation then removal. I don't think it's needed but I'm not gonna crib or anything, if we do have it. :) |
I completely agree but since other PRs have been merged that touch the same code area, it might not be (completely) trivial. And since we all agree that the use case is pretty niche, is undocumented and has an easy and clean workaround, I don't think it is worth it so let's move forward :) |
There are two code paths that lead to
unpacking.unpack_file
:download.unpack_url
-> {download.unpack_http_url
,download.unpack_file_url
} ->unpacking.unpack_file
wheel.build
->download.unpack_file_url
->unpacking.unpack_file
In 1, we first check whether the provided link in a VCS URL and if so we call
vcs_backend.unpack
directly.In 2, we only pass in the wheel file itself - no chance the removed code is called.